package cho08;

import java.util.Scanner;

/**
 * Created by 春旺 on 2017/4/9.
 */
public class TestLeasson
{
    public static void main(String[] args)
    {
        String another = "y";

        String name, instruct , teacher;
        int time;

        while (another.equalsIgnoreCase("y"))
        {
            System.out.println("请依次输入课的名字、课时、描述以及教师");
            Scanner scan = new Scanner(System.in);

            Leason88 Newclass = new Leason88();

            name = scan.nextLine();
            Newclass.name(name);

            time = scan.nextInt();
            Newclass.classTime(time);

            instruct = scan.nextLine();
            Newclass.Instruct(instruct);

            teacher = scan.nextLine();
            Newclass.teacher(teacher);

            System.out.println("Do you want to enter another class(y/n): ");
            another = scan.nextLine();

        }
    }
}
